package com.xneure.database.dao;

import java.util.Date;
import com.xneure.database.annotation.AutoUpdate;
import com.xneure.database.annotation.DBField;

public class DataBaseEntity extends DBEntity{
	@DBField(autoUpdate = AutoUpdate.CREATE,order = "ASC")
	private Date createDate;
	@DBField(autoUpdate = AutoUpdate.CHANGE)
	private Date updateDate;

	public DataBaseEntity(){
	}

	public Date getCreateDate(){
		return createDate;
	}

	public void setCreateDate(Date createDate){
		this.createDate = createDate;
		setUpdateDate(createDate);
	}

	public Date getUpdateDate(){
		return updateDate;
	}

	public void setUpdateDate(Date updateDate){
		this.updateDate = updateDate;
	}
}
